package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    //查询
    List<T> queryAll();
    //查询一个 queryOne(1L)
    T queryOne(Long id);
    //新增
    void save(T t);
    //修改
    void update(T t);
    // 删除
    void delete(Long id);
    //查询总数
    Long queryTotal(BaseQuery baseQuery);
    //查询每页数据
    List queryData(BaseQuery baseQuery);
}
